/* 顶部导航样式 */
.top-nav {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    padding: 5px;
    cursor: pointer;
}

.top-nav h1 {
    margin-left: 15px;
    font-size: 18px;
}

/* 科室选择样式 */
.department-section {
    padding: 15px;
}

.department-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.department-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.department-item:hover {
    background-color: #f0f0f0;
}

.department-item.active {
    background-color: #e3f2fd;
    color: #2196F3;
}

.department-item i {
    font-size: 24px;
    color: #666;
}

.department-item.active i {
    color: #2196F3;
}

.department-item span {
    font-size: 12px;
}

/* 日期选择样式 */
.date-section {
    padding: 15px;
}

.date-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.date-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.date-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.date-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 80px;
}

.date-item.active {
    background-color: #2196F3;
    color: white;
}

.date-item .day {
    font-size: 14px;
}

.date-item .date {
    font-size: 12px;
    opacity: 0.8;
}

/* 时间段选择样式 */
.time-section {
    padding: 15px;
}

.time-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.time-item {
    text-align: center;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.time-item:hover {
    background-color: #f0f0f0;
}

.time-item.active {
    background-color: #2196F3;
    color: white;
}

.time-item.disabled {
    background-color: #f0f0f0;
    color: #ccc;
    cursor: not-allowed;
}

/* 医生列表样式 */
.doctor-section {
    padding: 15px;
}

.doctor-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.doctor-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.doctor-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.doctor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    object-fit: cover;
}

.doctor-info {
    flex: 1;
}

.doctor-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.doctor-info p {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.tags {
    display: flex;
    gap: 8px;
}

.tag {
    font-size: 12px;
    padding: 2px 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #666;
}

.book-btn {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.book-btn:hover {
    background-color: #1976D2;
}

/* 加载动画 */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #999;
}

.loading-spinner i {
    font-size: 30px;
    margin-bottom: 10px;
}

/* 预约表单弹窗 */
.appointment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.appointment-modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.input-value {
    font-size: 16px;
    color: #333;
    padding: 5px 0;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.cancel-btn {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

.submit-btn {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

/* Toast提示样式 */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    text-align: center;
    max-width: 80%;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

/* 响应式样式 */
@media (max-width: 480px) {
    .department-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .time-grid {
        grid-template-columns: repeat(3, 1fr);
    }
} 